package router

import (
	"net/http"

	"github.com/gin-gonic/gin"
)

var G *gin.Engine

//Load 加载路由配置
func Load(g *gin.Engine) {
	G = g
	G.Use(gin.Recovery())
	// 404
	G.NoRoute(func(c *gin.Context) {
		c.String(http.StatusNotFound, "404 not found")
	})
	InitLogAdmin()
	InitLog()
	InitCommon()
	InitApplication()
	InitTeam()
}
